<?php 
use Doctrine\ORM\Tools\Setup;
use brainmaster\mobi\application\service\BarangService;

require_once "lib/orm.doctrine/Doctrine/ORM/Tools/Setup.php";
// require_once "classes/service/BarangService.php";

// $barang = new BarangService();

$directory = "lib/orm.doctrine";
$classes = "classes";

Setup::registerAutoloadDirectory($directory);
$isDevMode = true;
$config = Setup::createAnnotationMetadataConfiguration(array($classes."/entity"), $isDevMode);

if (!class_exists('brainmaster\mobi\application\service\BarangService', false)) {
	require_once $classes . "/service/BarangService.php";
	echo "class exists";
}

// $loader = new ClassLoader("Doctrine", $directory);
// $loader->register();

// $barang = new BarangService();